<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>角色分配</title>
<%@ include file="/resources/jsp/rootPath.jsp"%>
</head>
<body>
	<%@ include file="/resources/jsp/header.jsp"%>

	<!-- content start -->
	<div class="am-cf admin-main">
		<%@ include file="/resources/jsp/left.jsp"%>
		<!-- content start -->
		<div class="admin-content">
			<form action="${root}/sys/organization/saveSysAuthRole.do" method="post">
				<c:if test="${method=='edit' }">
					<input type="hidden" name="fdId" value="${role.fdId}"/>
				</c:if>
				<div class="am-cf am-padding">
					<div class="am-fl am-cf">
						<strong class="am-text-primary am-text-lg">表单</strong> / <small>form</small>
					</div>
				</div>

				<div class="am-tabs am-margin" data-am-tabs>
					<ul class="am-tabs-nav am-nav am-nav-tabs">
						<li class="am-active"><a href="#tab1">基本信息</a></li>
					</ul>

					<div class="am-tabs-bd">
						<div class="am-tab-panel am-fade am-in am-active" id="tab1">
							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">名称</div>
								<div class="am-u-sm-8 am-u-md-10">
									<input type="text" class="am-input-sm" name="fdName" value="${role.fdName }" />
								</div>
							</div>

							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">别名</div>
								<div class="am-u-sm-8 am-u-md-10">
									<input type="text" class="am-input-sm" name="fdAlias" value="${role.fdAlias }" />
								</div>
							</div>


							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">模块</div>
								<div class="am-u-sm-8 am-u-md-10">
									<input type="text" class="am-input-sm" name="fdModulePath" value="${role.fdModulePath }" />
								</div>
							</div>

							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">可访问的资源URL</div>
								<div class="am-u-sm-8 am-u-md-10">
									<input type="text" class="am-input-sm" name="fdPath" value="${role.fdPath }" />
								</div>
							</div>
							
							<div class="am-g am-margin-top">
								<div class="am-u-sm-4 am-u-md-2 am-text-right">描述</div>
								<div class="am-u-sm-8 am-u-md-10">
									<textarea class="" cols="50" rows="3" id="doc-ta-1" name="fdDescription">${role.fdDescription }</textarea>
								</div>
							</div>

						</div>



					</div>
				</div>

				<div class="am-margin">
					<button type="button" onclick="submit()" class="am-btn am-btn-primary am-btn-xs">提交保存</button>
					<button type="button" onclick="cancle()" class="am-btn am-btn-primary am-btn-xs">放弃保存</button>
				</div>
			</form>
		</div>

	</div>
	<%@ include file="/resources/jsp/foot.jsp"%>
</body>
<script type="text/javascript">
	function submit(){
		$("form").submit();
	}

	function cancle(){
		window.location.href="${root}/sys/organization/sysAuthRole.do";
	}
</script>
</html>